package com.source.syslog.service.impl;

import com.source.syslog.entity.Operation;
import com.source.syslog.mapper.OperationMapper;
import com.source.syslog.service.OperationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author IceBerg777
 * @since 2021-04-11
 */
@Service
public class OperationServiceImpl extends ServiceImpl<OperationMapper, Operation> implements OperationService {

    @Autowired
    private OperationMapper operationMapper;

    @Override
    public List<Operation> findByKeyWord(String keyWord) {

        return operationMapper.findByKeyWord("%" + keyWord + "%");
    }
}
